const express = require('express');
const router = express.Router();
const { jwtCheck } = require('../../util/jwt');
const RoleInfo = require('../../logicFun/system/role')

// 添加角色
router.post('/addRole', jwtCheck, RoleInfo.addRole)

// 编辑角色
router.post('/editRole', jwtCheck, RoleInfo.editRole)

// 删除角色
router.delete('/deleteRole/:id', jwtCheck, RoleInfo.deleteRole)

// 查询角色列表
router.get('/queryRoleList', jwtCheck, RoleInfo.queryRoleList)

// 查询角色详情
router.post('/roleDetail', jwtCheck, RoleInfo.roleDetail)

module.exports = router;




